﻿
using System;
using System.Collections.Generic;

namespace Model.Entities
{
    public class AlbumDetails
    {
        private List<TrackDetails> tracks = new List<TrackDetails>();
        public AlbumDetails()
        {
        }

        public AlbumDetails(int albId, string albName, DateTime releaseDate, string url, string style, int artistId, string artistName, string cover)
        {
            AlbumId = albId;
            AlbumName = albName;
            ReleaseDate = releaseDate;
            Url = url;
            Style = style;
            ArtistId = artistId;
            ArtistName = artistName;
            Cover = cover;
        }

        public int AlbumId { get; set; }
        public string AlbumName { get; set; }
        public DateTime? ReleaseDate { get; set; }
        public string Url { get; set; }
        public string Style { get; set; }
        public int ArtistId { get; set; }
        public string ArtistName { get; set; }
        public string Cover { get; set; }
        public List<TrackDetails> Tracks
        {
            get { return tracks; } 
            set { tracks = value; }
        }

        public override string ToString()
        {
            return String.Format("{0}\n" +
                                 "{1}\n" +
                                 "{2}\n" +
                                 "{3}\n" +
                                 "{4}\n" +
                                 "{5}\n", AlbumId, AlbumName, ReleaseDate, Style, ArtistId, ArtistName);
        }
    }
}